package com.huang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("td_img")
public class Img implements Serializable {
    private static final long serialVersionUID = 1L;

    //需要设置id属性自增，不然无法工作
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    /**
     * 日记内容
     */
    private String content;

    /*
     * 图片url
     */
    private String userImg;

    private Long createDate;

    private String introduction;
}